import { ObjectDirective } from 'vue';

export const autoFocus: ObjectDirective = {
    mounted(el: HTMLButtonElement, binding) {
        if (binding.value == undefined) return;
        el.focus();
    },
};
